package com.zzj.ecology.system.bean.purchase;

import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.format.annotation.NumberFormat;

import java.io.Serializable;
import java.util.Date;

public class FapdInvoice implements Serializable {
    private Integer id;

    private String invoiceId;

    private String invoiceSupplier;

    private String invoicePoId;

    private String invoiceDeliveryId;

    private String invoicePurchaseId;

    private String goodName;

    private String goodSpec;

    private Double goodQty;

    private String goodUnit;

    @NumberFormat(pattern = "###,###,###.###")
    private Double goodPrice;

    private Double goodSubPrice;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date goodBuyedAt;

    private String goodComment;

    private String filledBy;

    private String filledCheckBy;

    private String buyerCheck;

    private String buyerRecheck;

    private Date createAt;

    private String createdByGlobalId;

    private Integer deleteStatus;

    private Date lastUpdateAt;

    private String updatedByGlobalId;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getInvoiceId() {
        return invoiceId;
    }

    public void setInvoiceId(String invoiceId) {
        this.invoiceId = invoiceId == null ? null : invoiceId.trim();
    }

    public String getInvoiceSupplier() {
        return invoiceSupplier;
    }

    public void setInvoiceSupplier(String invoiceSupplier) {
        this.invoiceSupplier = invoiceSupplier == null ? null : invoiceSupplier.trim();
    }

    public String getInvoicePoId() {
        return invoicePoId;
    }

    public void setInvoicePoId(String invoicePoId) {
        this.invoicePoId = invoicePoId == null ? null : invoicePoId.trim();
    }

    public String getInvoiceDeliveryId() {
        return invoiceDeliveryId;
    }

    public void setInvoiceDeliveryId(String invoiceDeliveryId) {
        this.invoiceDeliveryId = invoiceDeliveryId == null ? null : invoiceDeliveryId.trim();
    }

    public String getInvoicePurchaseId() {
        return invoicePurchaseId;
    }

    public void setInvoicePurchaseId(String invoicePurchaseId) {
        this.invoicePurchaseId = invoicePurchaseId == null ? null : invoicePurchaseId.trim();
    }

    public String getGoodName() {
        return goodName;
    }

    public void setGoodName(String goodName) {
        this.goodName = goodName == null ? null : goodName.trim();
    }

    public String getGoodSpec() {
        return goodSpec;
    }

    public void setGoodSpec(String goodSpec) {
        this.goodSpec = goodSpec == null ? null : goodSpec.trim();
    }

    public Double getGoodQty() {
        return goodQty;
    }

    public void setGoodQty(Double goodQty) {
        this.goodQty = goodQty;
    }

    public String getGoodUnit() {
        return goodUnit;
    }

    public void setGoodUnit(String goodUnit) {
        this.goodUnit = goodUnit == null ? null : goodUnit.trim();
    }

    public Double getGoodPrice() {
        return goodPrice;
    }

    public void setGoodPrice(Double goodPrice) {
        this.goodPrice = goodPrice;
    }

    public Double getGoodSubPrice() {
        return goodSubPrice;
    }

    public void setGoodSubPrice(Double goodSubPrice) {
        this.goodSubPrice = goodSubPrice;
    }

    public Date getGoodBuyedAt() {
        return goodBuyedAt;
    }

    public void setGoodBuyedAt(Date goodBuyedAt) {
        this.goodBuyedAt = goodBuyedAt;
    }

    public String getGoodComment() {
        return goodComment;
    }

    public void setGoodComment(String goodComment) {
        this.goodComment = goodComment == null ? null : goodComment.trim();
    }

    public String getFilledBy() {
        return filledBy;
    }

    public void setFilledBy(String filledBy) {
        this.filledBy = filledBy == null ? null : filledBy.trim();
    }

    public String getFilledCheckBy() {
        return filledCheckBy;
    }

    public void setFilledCheckBy(String filledCheckBy) {
        this.filledCheckBy = filledCheckBy == null ? null : filledCheckBy.trim();
    }

    public String getBuyerCheck() {
        return buyerCheck;
    }

    public void setBuyerCheck(String buyerCheck) {
        this.buyerCheck = buyerCheck == null ? null : buyerCheck.trim();
    }

    public String getBuyerRecheck() {
        return buyerRecheck;
    }

    public void setBuyerRecheck(String buyerRecheck) {
        this.buyerRecheck = buyerRecheck == null ? null : buyerRecheck.trim();
    }

    public Date getCreateAt() {
        return createAt;
    }

    public void setCreateAt(Date createAt) {
        this.createAt = createAt;
    }

    public String getCreatedByGlobalId() {
        return createdByGlobalId;
    }

    public void setCreatedByGlobalId(String createdByGlobalId) {
        this.createdByGlobalId = createdByGlobalId == null ? null : createdByGlobalId.trim();
    }

    public Integer getDeleteStatus() {
        return deleteStatus;
    }

    public void setDeleteStatus(Integer deleteStatus) {
        this.deleteStatus = deleteStatus;
    }

    public Date getLastUpdateAt() {
        return lastUpdateAt;
    }

    public void setLastUpdateAt(Date lastUpdateAt) {
        this.lastUpdateAt = lastUpdateAt;
    }

    public String getUpdatedByGlobalId() {
        return updatedByGlobalId;
    }

    public void setUpdatedByGlobalId(String updatedByGlobalId) {
        this.updatedByGlobalId = updatedByGlobalId == null ? null : updatedByGlobalId.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", invoiceId=").append(invoiceId);
        sb.append(", invoiceSupplier=").append(invoiceSupplier);
        sb.append(", invoicePoId=").append(invoicePoId);
        sb.append(", invoiceDeliveryId=").append(invoiceDeliveryId);
        sb.append(", invoicePurchaseId=").append(invoicePurchaseId);
        sb.append(", goodName=").append(goodName);
        sb.append(", goodSpec=").append(goodSpec);
        sb.append(", goodQty=").append(goodQty);
        sb.append(", goodUnit=").append(goodUnit);
        sb.append(", goodPrice=").append(goodPrice);
        sb.append(", goodSubPrice=").append(goodSubPrice);
        sb.append(", goodBuyedAt=").append(goodBuyedAt);
        sb.append(", goodComment=").append(goodComment);
        sb.append(", filledBy=").append(filledBy);
        sb.append(", filledCheckBy=").append(filledCheckBy);
        sb.append(", buyerCheck=").append(buyerCheck);
        sb.append(", buyerRecheck=").append(buyerRecheck);
        sb.append(", createAt=").append(createAt);
        sb.append(", createdByGlobalId=").append(createdByGlobalId);
        sb.append(", deleteStatus=").append(deleteStatus);
        sb.append(", lastUpdateAt=").append(lastUpdateAt);
        sb.append(", updatedByGlobalId=").append(updatedByGlobalId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}